package spring.cloud.chapter2.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel(value = "ResultMessage",description = "返回结果信息对象")
public class ResultMessage {

    @ApiModelProperty(value = "是否成功")
    private boolean success;
    @ApiModelProperty(value = "结果信息")
    private String message;

    public ResultMessage() {
    }

    public ResultMessage(boolean success, String message) {
        this.success = success;
        this.message = message;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
